﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class ButtonClick : MonoBehaviour
{
    Button button;
    private void Start()
    {
        button = GetComponent<Button>();
        button.onClick.AddListener(PlayOnclickSFX);
    }
    private void PlayOnclickSFX()
    {
        SFXManager.Instance.PlaySFX(Const.ButtonSFX);
    }
}
